import React, { Component } from 'react';
import {HashRouter as Router, Route ,Switch} from "react-router-dom";
import Login from '../components/login/Login';
import App from './App';

class Entrance extends Component{
    constructor(props){
        super(props);
        this.state = {
            minheight:document.documentElement.clientHeight,
        };
    }
    render(){
        return(
            <div>
                <Router>
                    <div style={{overflow:'auto',minHeight:this.state.minheight}}>
                        <Switch>
                            <Route exact path="/" component={Login}/>
                            <Route component={App}/>
                        </Switch>
                    </div>
                </Router>
            </div>
        )
    }
}
export default Entrance;

